package org.csu.mypetstore.persistence;


import org.csu.mypetstore.domain.Category;
import org.csu.mypetstore.domain.Item;
import org.csu.mypetstore.domain.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper {
    //查询所有的商品
    List<Category> getCategoryList();

    //通过id查询某一商品
    Category getCategory(String categoryId);

    List<Category> getallCategorys();

    void deleteCastegory(String itemId);

   void insertCategory(Category category);

    List<Category>searchCategory(String keyword);
    void updateCategory(Category category);
    void updateQuantity(Category category);

}
